package com.itcast.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itcast.reggie.dto.DishDto;
import com.itcast.reggie.entity.Dish;

import java.util.List;

/**
 * @author hehehe
 * @ClassName DishService
 * @Description TODO
 * @date 2022/11/30/030 16:03
 * @Version 1.0
 */

public interface DishService extends IService<Dish> {
    void saveWithFlavors(DishDto dishDto);

    DishDto getByIdWithFlavors(String id);

    /**
     * 更新菜品信息，同时更新对应的口味信息
     */
    void updateWithFlavors(DishDto dishDto);

    void deleteWithFlavors(List<String> ids);
}
